home *** CD-ROM | disk | FTP | other *** search
/ Sounds Terrific 1 / Sounds Terrific CD (1994)(Weird Science)(Disc 2 of 2)[!][Amiga-PC].iso / modules / v / viperge.mod < prev    next >
Encoding:
Text File  |  1994-08-04  |  4.0 KB  |  79 lines

  1. GOLDEDIT.MOD... update of UEDITGLD.MOD for WWIV 4.2
  2. Viper #23 @5052
  3. Mon Dec 09 02:21:30 1991
  4. ┌────────────────────────────────────────────────────────────────────────────┐
  5. │ Mod Name: GOLDEDIT.MOD                  Mod Author: Viper  #23 @5052       │
  6. │ Difficulty: Easy                        Date: 12/09/1991                   │
  7. │ WWIV Version: 4.2                                                          │
  8. │ Description: Allows Sysop or Co-Sysop to change the users gold by hitting  │
  9. │              '$' from Uedit.                                               │
  10. │ Note: This is not my mod. This is the mod from The Shadow # 15@2303. His   │
  11. │       mod was called UEDITGLD.MOD. This is a revised version to work with  │
  12. │       WWIV 4.2. If theres already a mod out there that is for 4.2, Sorry,  │
  13. │       I did not know.                                                      │
  14. │ Files Affected: UEDIT.C                                                    │
  15. └────────────────────────────────────────────────────────────────────────────┘
  16.  
  17. Step 1. Back up your source code. No need in explaing this. Right?
  18.  
  19. Step 2. Find this in UEDIT.C in void print_data...
  20.  
  21.   if ((u->restrict)!=0)                       /* Existing code */
  22.     npr("Rest: %s\r\n",s2);                   /*     "      "  */
  23.   if (u->wwiv_regnum)                         /*     "      "  */
  24.     npr("WWIV: %ld\r\n", u->wwiv_regnum);     /* Existing code */
  25.   itoa((int)u->gold,s3,10);                   /* Goldedit Mod  */ /* ADD */
  26.     npr("Gold: %s\r\n", s3);                  /* Goldedit Mod  */ /* ADD */
  27.                                               /* Existing code */
  28. }                                             /* Existing code */
  29.  
  30. Step 3. Search a little farther down for this...
  31.  
  32.  
  33.       nl();                                       /* Existing code      */
  34.       prt(2,"Uedit : ");                          /*     "      "       */
  35.       if ((thisuser.sl==255) || (wfc))            /* Existing code      */
  36.         ch=onek("Q[]{}/,.?UDRNLCPOGMSTEYZAI~:$"); /* NOTE: $ added      */
  37.       else                  /* Add this here ^                          */
  38.         ch=onek("Q[]{}/,.?UDRNLCPOGMSTEYZAI");    /* Add $ if you want  */
  39.       switch(ch) {                                /* Co-Sysop to access */
  40.         case 'Q':                                 /* the gold editing to */
  41.         done=1;                                   /* Existing code      */
  42.  
  43.  
  44.  
  45. Step 4. Search a little farther down for this...
  46.  
  47.  
  48.          }                         /* Existing code       */
  49.           break;                   /* Existing code       */
  50.         case '$':                  /* Goldedit Mod Start  Add from here */
  51.           prt(2,"New Gold? ");     /*    "      "    "    */
  52.            input(s,10);            /*    "      "    "    */
  53.            i=atoi(s);              /*    "      "    "    */
  54.            u.gold=i;               /*    "      "    "    */
  55.            write_user(un,&u);      /*    "      "    "    */
  56.            break;                  /* Goldedit Mod Finish Stop adding here */
  57.         case '~':                  /* Existing code       */
  58.           u.ass_pts=0;             /* Existing code       */
  59.  
  60.  
  61. Step 5. Recompile UEDIT.C only. It shouldn't take to long since you are 
  62.         only doing one file.
  63. --------------------------------------------------------------------------
  64.  
  65.                             DISCLAIMER
  66.  
  67.      I take no responsibilty in this mod. If it kills someone, don't 
  68.      come blaming me. You should use this mod at your own risk. This
  69.      mod should have no problems with it, but don't hold me up to it.
  70.  
  71. Read this: The author of the 4.12 file can be located at 15@2303.
  72.            He originally wrote this mod for 4.12. I just changed a 
  73.            little bit of the code to mtch 4.2's. If you have any 
  74.            questions or anything else i can be contacted at 
  75.            #23 @5052. If you use this mod and like or you don't
  76.            like it email.
  77.  
  78.  
  79. Viper #23 @5052
  80.